﻿<?= '<?xml version="1.0" encoding="UTF-8" ?>'; ?>
<?= $this->doctype('XHTML1_TRANSITIONAL') ?>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <?php
    require_once'SmartL/Version.php'; //used in footer
    
    if ( !$this->user ) {
		$this->headScript()->appendFile($this->publicUrl . "Scripts/formsValidation.js");
		$this->headScript()->captureStart(); ?>
		function validateLoginForm() {
			var loginValidator = new FormValidator('login');			
			loginValidator.isNotEmpty('login_username', '<?= $this->translate('isEmpty') ?>');
			loginValidator.isNotEmpty('login_password', '<?= $this->translate('isEmpty') ?>');
			return loginValidator.result;
		}			
		<?php $this->headScript()->captureEnd();
    }        

    echo $this->headTitle($this->translate('Smart Framework - Demo Application'));
    echo $this->headMeta()
        ->appendHttpEquiv('expires', 'Wed, 26 Feb 1997 08:21:57 GMT')
        ->appendHttpEquiv('pragma', 'no-cache')
        ->appendHttpEquiv('Cache-Control', 'no-cache')
        ->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8');
    echo $this->headScript();
    echo $this->headLink()
        ->appendStylesheet($this->skinUrl . 'design01.css')
        ->appendStylesheet($this->skinUrl . 'design01.' . strtolower($this->langId) . '.css');
    echo $this->headStyle();
    ?>
</head>

<body>
<div id="page_main">

	<div id="content">

	<div id="leftmenu">
		<div id="leftmenu_inside">

			<?= $this->action("categories-menu","product-catalogue",null) ?>

	        <?= $this->action("contacts","frame",null) ?>

		</div><!--leftmenu_inside-->
	</div><!--leftmenu-->


	<div id="maincontent">
		<div id="maincontent_inside">
			<?= $this->layout()->content ?>
		</div><!--div maincontent_inside-->
	</div><!--div maincontent-->


	<div id="rightmenu">
	<div id="rightmenu_inside">
			<?= $this->action("login","user",null) ?>
	</div>
	</div>

	<div id="footer">
		<?= $this->action("footer", "frame", null) ?>
	</div>

</div><!-- id content-->

	<div id="logobox">
	   <?= $this->action("logo", "frame", null) ?>
		<div id="logobox_inside">
		</div>
	</div>

	<div id="topbar">
	<div id="topbar_inside">
	    <div class="line_leftend"></div>
		<div id="line">
		  <div class="line_rightend"></div>
		  <div id="menu">
		      <?= $this->action("header","frame",null) ?>
		  </div>
		  <div class="line_leftend"></div>
		</div>
        <div class="line_rightend"></div>

        <?= $this->action("language-selector", "frame", null) ?>


	</div><!--topbar_inside-->
	</div><!--topbar-->

</div><!--page_main-->
</body>

</html>
